import React from 'react';
import {Modal} from 'antd';
import DomResList from "@/pages/sys/domain/components/domainRes/DomainRes";

const AddResForm = (props) => {
  const {
    onCancel: handleAddResModalVisible,
    addResModalVisible,
    values,
    addRes
  } = props;

  return (
    <Modal
      width={"fit-content"}
      bodyStyle={{
        padding: '32px 40px 48px',
      }}
      destroyOnClose
      visible={addResModalVisible}
      title={values.siteName}
      footer={null}
      onCancel={() => handleAddResModalVisible()}
    >
      <DomResList  domainId={values.id} addRes={addRes}/>
    </Modal>
  );
};

export default AddResForm;
